package com.sci.feign;


import com.sci.entity.User;
import com.sci.feign.impl.UserServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-service", fallback = UserServiceClientFallback.class)
public interface UserServiceClient {
    @GetMapping("/user/by-wechat/{wechatId}")
    User getUserByWechatId(@PathVariable("wechatId") String wechatId);
}
